package IOMyhead;

import java.io.*;

public class MyHead {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\wangzihong\\Desktop\\20175209\\课上练习及课下作业\\src\\IOMyhead","20175209.txt");
        int a = Integer.parseInt(args[0]);
        char [] number = new char[1045];     //每行最多五个字符，共209行
        String s="";
        try {
            FileReader in = new FileReader(file);
            in.read(number);
            s= new String(number);
            String [] num = s.split("\r\n");
            for(int i=0;i<a;i++) {
                System.out.println(num[i]);
            }
        }
        catch(Exception e){
            System.out.println("e");
        }
    }
}
